package cn.qingyun.gis.modules.scenes.entity;

import cn.qingyun.gis.modules.handle.JsonbToEntityHandler;
import cn.qingyun.gis.modules.scenes.request.PoiDraftRequest;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * @author LHJ
 * @description
 * @date 2024/10/25 16:09
 */
@Data
public class PoiScenarioProofreadDraft {

    @TableId(type = IdType.ASSIGN_UUID)
    private String id;
    /**
     * 序列号
     */
    private String proofreadId;

    private String content;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    /**
     * poi数据主键
     */
    private String poiScenarioId;
    /**
     * 用户工号
     */
    @NotEmpty(message = "用户工号不能为空！")
    private String kwPhone;
}
